package com.naiterui.ehp.bs.b2c.order.vo;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.Data;
import lombok.NoArgsConstructor;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <pre>
 *     下单请求参数
 * </pre>
 *
 * @author wangzehao
 * @date 2019-01-10 14:27
 * @since 1.0.0
 */
@Data
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(value = "PlaceOrderRequestVO", description = "下单请求参数")
public class PlaceOrderParamVO implements java.io.Serializable {

    private static final long serialVersionUID = -2389842177940365349L;

    /**
     * 收货地址Id
     */
    @NotNull(message = "没有选择收货地址")
    @ApiModelProperty(value = "收货地址ID")
    private Long shippingInfoId;

    /**
     * 支付方式
     */
    @NotNull(message = "没有选择支付方式")
    @ApiModelProperty(value = "支付方式  1:微信支付")
    private Integer payType;

    /**
     * 商品总价(分)
     */
    private Integer totalAmount;

    /**
     * 发票信息
     */
    @ApiModelProperty(value = "发票信息")
    private InvoiceVO invoice;

    /**
     * 备注
     */
    @ApiModelProperty(value = "订单备注")
    private String remark;

}
